package cn.java76.springboot.demo1.vo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
@Data
@Document(indexName = "news")
public class News implements Serializable {
    @Id
    private long nid;
    private long ntid;
    private String tname;
    private String ntitle;
    private String nauthor;
    private String ncreatedate;
    private String ncontent;
    private String nmodifydate;
}
